//
//  Macro.h
//  SouthKoreaDoorLock
//
//  Created by Umeinfo on 2018/1/17.
//  Copyright © 2018年 andy90s. All rights reserved.
//

#ifndef Macro_h
#define Macro_h


#define kSCREEN_WIDTH          ([UIScreen mainScreen].bounds.size.width)
#define kSCREEN_HEIGHT         ([UIScreen mainScreen].bounds.size.height)
#define k_iPhoneX     (kSCREEN_WIDTH == 375.f && kSCREEN_HEIGHT == 812.f)
// Internationalization of language.
#define SKLANGUAGE(str) NSLocalizedString(str, nil)
// weak reference.
#define weakify(var) __weak typeof(var) AHKWeak_##var = var;
#define strongify(var) \
_Pragma("clang diagnostic push") \
_Pragma("clang diagnostic ignored \"-Wshadow\"") \
__strong typeof(var) var = AHKWeak_##var; \
_Pragma("clang diagnostic pop")



#endif /* Macro_h */
